import Request from '@/utils/request';
import Config from '@/config';

export function login(username, password) {
  return Request({
    url: Config.loginStudent,
    method: 'post',
    data: {
      username,
      password
    }
  });
}


export function getInfo() {
  return Request({
   url:Config.getUserInfo,
   method:'post'
  });
}

//登出
export function logout() {
  return Request({
    url: Config.logOut,
    method: 'post'
  });
}
